package com.zpself.module.basic.static类变量;

/**
 * @author By ZengPeng
 * @Description
 * @date in  2020/9/14 11:17
 * @Modified By
 */
public class TestStatic {
    /**
    *  证明：接口或类 静态类变量，各个子类公用
    **/
    public static void main(String[] args) {
        Asian.RACE.put("汉族","10,0000,0000");
        European.RACE.put("爱尔兰当地人","7000,0000");

        System.out.println(Person.RACE);
        System.out.println(Asian.RACE);
        System.out.println(European.RACE);

        //结果
//        {爱尔兰当地人=7000,0000, 汉族=10,0000,0000}
//        {爱尔兰当地人=7000,0000, 汉族=10,0000,0000}
//        {爱尔兰当地人=7000,0000, 汉族=10,0000,0000}
    }
}
